package cn.alm.allinoneboot.service;

import cn.alm.allinoneboot.common.CommonResult;
import cn.alm.allinoneboot.dto.CommonDto;
import org.springframework.stereotype.Service;

@Service
public interface UserService {

    CommonResult getUserByUsername(String username);

    CommonResult login(CommonDto dto) throws Exception;

    CommonResult createUser(CommonDto dto) throws Exception;

    CommonResult logout(CommonDto dto);

}
